<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="viewport"
	content="width=device-width,height=device-height, initial-scale=1.0, user-scalable=no">
    <script type="text/javascript" src="${s.base}/res/mobile/js/zepto.min.js"></script>
		
	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js "></script>
		
	<script type="text/javascript">
	
		 $(function(){
            // var _uname="${userid!'hhxx'}";
             var _time="${time!'123456'}";
             var _mobile="${mobile!''}";
             var _email="${email!''}";
             var _weixinid="${weixinid!''}";
             var _time="${time!'123456'}";
             
		  $("#confirm").on("click",function(){
			// 从另一个域的JSONP获取数据
		  	  $.getJSON("${s.base}/confirmlogin",    
		  	  {
		  	  mobile : _mobile,
			  email : _email,
			  weixinid : _weixinid,
		  	//  uname:_uname,
		  	  time:_time,
		  	  province:"${cfg.province}",
		  	  corpid:"${cfg.corpId}"
		  	  } ,  function (data) {
		  		if(data.success=true){
          		  
            		wx.closeWindow();
            	}
            	else {
            		alert(data.msg);
            	}
			  });  
	  	   //提交保存
		    
			   
		  });
		 });
 </script>

<title>二维码登陆验证</title>
<style>
* {
	padding: 0px;
	margin: 0px;
}

body {
	background: rgba(2, 82, 84, 1);;
}

#codeArea {
	width: 100%;
	height: 100%;
	margin: 100px auto;
}

#codeImg {
 	
	border-radius: 2px;
}

#title {
	width: 100%;
	line-height: 30px;
	text-align: center;
}

#content {
	padding: 30px;
	color: white;
	text-align: center;
}

#content p {
	margin: 3px;
}

.codeBorder {
	width: 66px;
	height: 66px;
	margin: 0 auto;
	border-radius: 5px;
	border: 1px solid rgba(247, 247, 247, 0.36);
	padding: 4px;
	box-shadow: 1px 2px 2px #222;
}

.codeBorder img {
	border-radius: 68px;
	-moz-border-radius: 68px;
	-webkit-border-radius: 68px;
}

.button {
	width: 200px;
	height: 30px;
	margin: 20px auto;
	background: linear-gradient(to bottom, rgba(122, 255, 144, 0.91),
		rgba(55, 171, 75, 0.8), rgba(74, 193, 94, 0.5));
	border: 1px solid #928888;
	box-shadow: 1px 2px 2px #222;
	border-radius: 5px;
	line-height: 30px;
	cursor: pointer;
}

.line {
	width: 100%;
	height: 0px;
	border-top: 1px solid #FFF;
	border-bottom: 1px solid #0A0A0A;
	box-shadow: 0px 1px 0px #9A9999;
	margin-top: 10px;
}

.copy, .name {
	height: 30px;
	width: 100%;
	line-height: 30px;
}

.name {
	
}
</style>

</head>
<body>
	<div id="codeArea">

		<div class="codeBorder">
			<img id="codeImg" alt="登陆二维码" width=64 height=64 src="${s.base}/res/images/corpimg/${cfg.corpicon}">

		</div>
		<div id="content">
			<div class="name">${cfg.provincename}</div>
			<div class="copy">重庆东电科技有限公司</div>
			<div class="line"></div>
			<div class="button" id="confirm">确认登录</div>

		</div>

	</div>
	
</body>
</html>